package home_5_4;

import java.io.BufferedReader;
import java.io.FileReader;
import java.text.BreakIterator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;

public class Flietohash {

    public static void main(String[] args)  throws  Exception{
        BufferedReader be=new BufferedReader(new FileReader("D:\\a.txt"));
        ArrayList<String> arrayList=new ArrayList<String>();
        String line=null;


        while ((line=be.readLine())!=null)
        {
            arrayList.add(line);
        }

        Random random=new Random();
        int a=random.nextInt(arrayList.size());
        String s=arrayList.get(a);
        System.out.println(s);


    }
}
